static GPS_PTrack *cur_tx_tracklist_entry;
static char *getposn = NULL;
static char *poweroff = NULL;
+static char *resettime = NULL;
static char *snlen = NULL;
static char *snwhiteopt = NULL;
static char *deficon = NULL;
NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
{ "power_off", &poweroff, "Command unit to power itself down",
NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
+ { "resettime", &resettime, "Sync GPS time to computer time",
+ NULL, ARGTYPE_BOOL, ARG_NOMINMAX},
{ "category", &category, "Category number to use for written waypoints",
NULL, ARGTYPE_INT, "1", "16"},
ARG_TERMINATOR
return;
}
+ /*
+ * THis is Gross. The B&W Vista sometimes sets its time decades into
+ * the future with no way to reset it. This apparently can "cure"
+ * an affected unit.
+ */
+ if (resettime) {
+ GPS_Command_Send_Time(fname, current_time());
+ return;
+ }
+
if (GPS_Init(fname) < 0) {
fatal(MYNAME ":Can't init %s\n", fname);
}